package jms.receiver;

import jms.receiver.utils.TourDto;

import org.apache.log4j.Logger;

public class MessageListener {
	
	static final Logger logger = Logger.getLogger(MessageListener.class);
	
    public void notify(TourDto tour) {
    	logger.debug(tour);
        System.out.println(tour);
        System.out.println("Date from " + tour.getDateFrom());
        System.out.println("Date to " + tour.getDateTo());
        System.out.println("Base prise " + tour.getBasePrice());
        System.out.println("Place name " + tour.getHotelDto().getCityName());
        System.out.println("Hotel name " + tour.getHotelDto().getName());
        System.out.println("Tour description " + tour.getDescription());
    }
}
